package cst.a720yyq.zyfypt_720yyq.Interface;

import java.util.List;

import cst.a720yyq.zyfypt_720yyq.Bean.ArticleBean;
import cst.a720yyq.zyfypt_720yyq.Bean.LoginBean;
import cst.a720yyq.zyfypt_720yyq.Bean.ProjectBean;
import cst.a720yyq.zyfypt_720yyq.Bean.SVideoBean;
import cst.a720yyq.zyfypt_720yyq.Bean.TcaseBean;
import cst.a720yyq.zyfypt_720yyq.Bean.TwareBean;
import cst.a720yyq.zyfypt_720yyq.Bean.UserBean;
import cst.a720yyq.zyfypt_720yyq.Bean.VideoBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by NNDMII on 2017/5/10.
 */

public interface ResService {
    @GET("api.php/login")
    Call<LoginBean> login(@Query("username") String username,
                          @Query("password") String password);

    @GET("api.php/reg")
    Call<String> reg(@Query("username") String username,
                        @Query("password") String password,
                        @Query("realname") String realname,
                        @Query("tel") String tel,
                        @Query("email") String email,
                        @Query("roleid") String roleid
                       );
    @GET("api.php/logout")
    Call<String> logout(@Header("SessionID") String sessionID);

    @GET("api.php/lists/mod/{mod}")
    Call<List<ArticleBean>> getArticalList(@Path("mod")String mod,
                                         @Query("page") int page,
                                         @Header("SessionID") String sessionID);
    @GET("api.php/lists/mod/{mod}")
    Call<List<TwareBean>> getTwareBeanList(@Path("mod")String mod,
                                         @Query("page") int page,
                                         @Header("SessionID") String sessionID);
    @GET("api.php/lists/mod/{mod}")
    Call<List<VideoBean>>getVideoList(@Path("mod")String mod,
                                      @Query("page") int page,
                                      @Header("SessionID") String sessionID);

    @GET("api.php/listspecial/mod/{mod}")
    Call<List<SVideoBean>> getSVideoList(@Path("mod")String mod,
                                         @Query("page") int page,
                                         @Header("SessionID") String sessionID);
    @GET("api.php/lists/mod/{mod}")
    Call<List<TcaseBean>> getTcaseList(@Path("mod")String mod,
                                         @Query("page") int page,
                                         @Header("SessionID") String sessionID);
    @GET("api.php/lists/mod/{mod}")
    Call<List<ProjectBean>> getProjectList(@Path("mod")String mod,
                                         @Query("page") int page,
                                         @Header("SessionID") String sessionID);




//    getDetail();
}
